package com.tsu.mall.common.service.impl;

import com.tsu.mall.common.entity.Attachment;
import com.tsu.mall.common.mapper.AttachmentMapper;
import com.tsu.mall.common.service.IAttachmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tttttt
 * @since 2023-04-25
 */
@Service
public class AttachmentServiceImpl extends ServiceImpl<AttachmentMapper, Attachment> implements IAttachmentService {

    @Override
    public List<Attachment> selectWaresPicsByWaresId(Integer waresId) {
        return baseMapper.selectWaresPicsByWaresId(waresId);
    }
    @Override
    public void insert(Attachment attachment) {
        baseMapper.insert(attachment);
    }
}
